Skip to content

Replace current expression.rs module with calls to the rust-miniscript's expression module - #112

Open
KyrylR wants to merge 5 commits into
ElementsProject:masterfrom
KyrylR:feature/upstream-expression
Open

KyrylR wants to merge 5 commits into
ElementsProject:masterfrom
KyrylR:feature/upstream-expression

Conversation

@KyrylR

@KyrylR KyrylR commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Built upon the #110

The #110 should be merged first

@KyrylR

KyrylR commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

@KyrylR
KyrylR force-pushed the feature/upstream-expression branch 2 times, most recently from 20b073d to 2c5ed14 Compare October 8, 2026 14:50
@KyrylR
KyrylR force-pushed the feature/upstream-expression branch from 2c5ed14 to d65bcdd Compare October 26, 2026 10:01
@KyrylR
KyrylR marked this pull request as ready for review October 26, 2026 10:02
@KyrylR
KyrylR force-pushed the feature/upstream-expression branch from d65bcdd to 4540de0 Compare October 29, 2026 12:34
@KyrylR

KyrylR commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

As discussed in the #108, this is a second step in revising simplicity descriptors

@apoelstra

Copy link
Copy Markdown
Member

In 4bef5c4:

Fine to keep verify_checksum for now but we should remove it in a later PR and just use the upstream checksum computation. (The comment points out that they deviate because upstream uses the last # as a separator while we use the first. Upstream is correct, we should not preserve this difference.)

Comment thread src/descriptor/mod.rs
// eltr is parsed without extensions first, and then with the extension
// type T. Tr::from_str will check the checksum
// match "tr(" to handle more extensibly
let desc = if s.starts_with(&format!("{}tr", ELMTS_STR)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In 4bef5c4:

This is also okay to leave in for this PR but we should be able to rip out all these string-parsing and "try multiple parses in a row" junk.

@KyrylR

KyrylR commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

Taking a look for both comments today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants